<?php

namespace Forms\Filter;

use Pinenut\Form\Filter;

class ReferenceOneAction extends Filter {
	public function run() {
		$value = $this->request->value;
		if (! is_array ( $value )) {
			
			$value = trim ( $value );
			if (! empty ( $value )) {
				$value = [ 
						'_ref' => $value 
				];
			}
		}
		return $value;
	}
}